/*******************************************************************************
 * Copyright (c) 2008, 2025 Lablicate GmbH.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 * Philip Wenig - initial API and implementation
 *******************************************************************************/
package org.eclipse.chemclipse.msd.swt.ui.converter;

import org.eclipse.chemclipse.model.core.IChromatogramOverview;
import org.eclipse.chemclipse.msd.model.core.IChromatogramMSD;
import org.eclipse.chemclipse.msd.model.core.IIon;
import org.eclipse.chemclipse.msd.model.core.IScanMSD;
import org.eclipse.chemclipse.msd.model.implementation.ChromatogramMSD;
import org.eclipse.chemclipse.msd.model.implementation.Ion;
import org.eclipse.chemclipse.msd.model.implementation.ScanMSD;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

@Ignore
public class ChromatogramOverviewsTestCase {

	private IChromatogramMSD chromatogram1;
	private IChromatogramMSD chromatogram2;
	private IScanMSD massSpectrum;

	@Before
	public void setUp() {

		// ---------------------------------chromatogram1
		chromatogram1 = new ChromatogramMSD();
		chromatogram1.setScanDelay(5000);
		chromatogram1.setScanInterval(1000);
		// Scan RT - Abundance
		// 5000 - 22000
		massSpectrum = new ScanMSD();
		massSpectrum.addIon(new Ion(IIon.TIC_ION, 22000));
		chromatogram1.addScan(massSpectrum);
		// 6000 - 66200
		massSpectrum = new ScanMSD();
		massSpectrum.addIon(new Ion(IIon.TIC_ION, 66200));
		chromatogram1.addScan(massSpectrum);
		// 7000 - 1712850
		massSpectrum = new ScanMSD();
		massSpectrum.addIon(new Ion(IIon.TIC_ION, 1712850));
		chromatogram1.addScan(massSpectrum);
		// 8000 - 812450
		massSpectrum = new ScanMSD();
		massSpectrum.addIon(new Ion(IIon.TIC_ION, 812450));
		chromatogram1.addScan(massSpectrum);
		chromatogram1.recalculateRetentionTimes();
		// ---------------------------------chromatogram1
		// ---------------------------------chromatogram2
		chromatogram2 = new ChromatogramMSD();
		chromatogram2.setScanDelay(3000);
		chromatogram2.setScanInterval(1500);
		// Scan RT - Abundance
		// 3000 - 2500
		massSpectrum = new ScanMSD();
		massSpectrum.addIon(new Ion(IIon.TIC_ION, 2500));
		chromatogram2.addScan(massSpectrum);
		// 4500 - 55200
		massSpectrum = new ScanMSD();
		massSpectrum.addIon(new Ion(IIon.TIC_ION, 55200));
		chromatogram2.addScan(massSpectrum);
		// 6000 - 869542
		massSpectrum = new ScanMSD();
		massSpectrum.addIon(new Ion(IIon.TIC_ION, 869542));
		chromatogram2.addScan(massSpectrum);
		// 7500 - 23654
		massSpectrum = new ScanMSD();
		massSpectrum.addIon(new Ion(IIon.TIC_ION, 23654));
		chromatogram2.addScan(massSpectrum);
		chromatogram2.recalculateRetentionTimes();
		// ---------------------------------chromatogram2
	}

	@Test
	public IChromatogramOverview getChromatogramOverview1() {

		return chromatogram1;
	}

	@Test
	public IChromatogramOverview getChromatogramOverview2() {

		return chromatogram2;
	}
}
